package com.kefu.robot.mapper;

import com.kefu.common.mybatis.KefuMapper;
import com.kefu.robot.model.RobotAidataDocType;
import org.apache.ibatis.annotations.Select;

/**
 * @author xiaoyu
 * @date 2023/11/03
 */
public interface RobotAidataDocTypeMapper extends KefuMapper<RobotAidataDocType>{

    @Select("select COALESCE(max(weight),0) from robot_aidata_doc_type where  tenant_id = #{arg0} and parent_id = #{arg1}")
    int getMaxWeight(String tenantId, String parentId);
}